import request from '@/utils/request'

// 渲染
export const getListAPI = (params) => {
  return request('/park/building', {
    params
  })
}

// 新增
export const getAddAPI = (data) => {
  return request.post('/park/building', data)
}

// 详情
export const getEditAPI = (id) => {
  return request(`/park/building/${id}`)
}

// 编辑
export const getLouyuEditAPI = (data) => {
  return request.put('/park/building', data)
}

// 删除
export const getDelAPI = (id) => {
  return request.delete(`/park/building/${id}`)
}
